import {configureStore} from '@reduxjs/toolkit';
//导入todosSlice默认导出的reducer
import todosReducer from './todosSlice';
const store = configureStore({
    //指定状态处理器，也就是reducer
    reducer:{
        todos:todosReducer
    }
});
console.log(store);
console.log(store.getState())
//默认导出仓库
export default store;